class Organization::CategoriesController < InheritedResources::Base
  respond_to :json

  def position_standard
    respond_with ::QueryPositionsByCategory.query params[:id]
  end

  def create 
    add_organ_category = AddOrganCategory.run permitted_params
    render CommandJsonSerializer.as_json add_organ_category
  end

  private
  def permitted_params
    params.permit(:name)
  end
end